﻿using Edu.Entitys;
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form;
using Volo.Abp.AutoMapper;

namespace Edu.Contracts
{
    [AutoMapFrom(typeof(StudyTaskDto), typeof(StudyTaskContent))]
    [AutoMapTo(typeof(AppStudyTask), typeof(StudyTaskContent))]
    public class StudyTaskCreateUpdateDto
    {
        /// <summary>
        /// 年
        /// </summary>
        public int Year
        {
            get;
            set;
        }

        /// <summary>
        /// 季度
        /// </summary>
        public int Quarter
        {
            get;
            set;
        }


        public string Title
        {
            get;
            set;
        }

        /// <summary>
        /// 截止时间
        /// </summary>
        [DataType(DataType.Date)]
        public System.DateTimeOffset DeadLine
        {
            get;
            set;
        }

        /// <summary>
        /// 任务状态
        /// </summary>
        public StudyTaskStatus Status
        {
            get;
            set;
        }

        /// <summary>
        /// 老师的uid
        /// </summary>
        public string TeacherPhoneNum
        {
            get;
            set;
        }

        /// <summary>
        /// 学生的uid
        /// </summary>
        public string StudentPhoneNum
        {
            get;
            set;
        }

        /// <summary>
        /// 老师的uid
        /// </summary>
        public Guid TeacherId
        {
            get;
            set;
        }

        /// <summary>
        /// 学生的uid
        /// </summary>
        public Guid StudentId
        {
            get;
            set;
        }

        public string One { get; set; }

        public string Two { get; set; }

        public string Three { get; set; }

        public string TaskType { get; set; }
        [TextArea]
        public string Detail { get; set; }

        [TextArea]
        public string Grade { get; set; }
    }



}
